package com.example.wlzz.repository.mongoRepository;

import com.example.wlzz.entity.mongoEntity.LoveNotice;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface LoveNoticeRepository extends MongoRepository<LoveNotice,String>{
    Page<LoveNotice> findByToUserid(int userid, Pageable pageable);
    List<LoveNotice> findByToUseridAndStatus(int toUserid, int status);

    Page<LoveNotice> findByUserid(int userid, Pageable pageable);
}
